import request from '@/utils/request'

// 查询维保登记列表
export function listFwMaintenanceRecord(query) {
  return request({
    url: '/device/fwMaintenanceRecord/list',
    method: 'get',
    params: query
  })
}

// 查询维保登记详细
export function getFwMaintenanceRecord(id) {
  return request({
    url: '/device/fwMaintenanceRecord/' + id,
    method: 'get'
  })
}

// 新增维保登记
export function addFwMaintenanceRecord(data) {
  return request({
    url: '/device/fwMaintenanceRecord',
    method: 'post',
    data: data
  })
}

// 修改维保登记
export function updateFwMaintenanceRecord(data) {
  return request({
    url: '/device/fwMaintenanceRecord',
    method: 'put',
    data: data
  })
}

// 删除维保登记
export function delFwMaintenanceRecord(id) {
  return request({
    url: '/device/fwMaintenanceRecord/' + id,
    method: 'delete'
  })
}
